import java.io.File;

/**
 * @ClassName Editor
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2021/1/19 14:53
 * @Version 1.0
 */
public class Editor {
	public EventManager eventManager;
	private File file;

	public Editor() {
		this.eventManager = new EventManager("open", "save");
	}

	public void openFile(String filePath) {
		this.file = new File(filePath);
		eventManager.notify("open", file);

	}

	public void saveFile() {
		eventManager.notify("save", file);
	}
}
